﻿

{include template('header','common')}
<link href="{THEME_STYLE_PATH}style/css/newcomers.css" type="text/css" rel="stylesheet" />
<style>
.Navon {margin: 0 10px;position: relative;}
.Navun {margin: 0 10px;position: relative;}
#Nav .xinren {
	display: block;
	overflow: hidden;
	position: absolute;
	right: -10px;
	top: 8px;
}

#Nav .luntan,
#Nav .youxi,
#Nav .huiyuan {
	display: block;
	overflow: hidden;
	position: absolute;
	left: -10px;
	top: -15px;
}

#Nav .luntan {
	width: 54px;
	top: -15px;
	left: -5px;
}

</style>
<div id="Mainbox">
		<div class="Newcomers_sub">
			<ul>
				<li><a href="#Mainbox" class="nsub_a">如何赚钱？</a></li>
				<li><a href="#info" class="nsub_a">如何提现？</a></li>
				<li><a href="#info" class="nsub_a">需要帮助？</a></li>
				<li><a href="#Head" class="goqt">新手任务<br />赚取<br />人民币<br />奖励</a></li>
			</ul>
		</div>
		<div class="Newcomers_welcome">
			<p><img src="{THEME_STYLE_PATH}style/images/newcomers/newcomers_03.jpg" /></p>
		</div>
		<div class="Newcomers_box" id="award" style="position: relative;">
			<p><img src="{THEME_STYLE_PATH}style/images/newcomers/newcomers_06.jpg" /></p>
			<!-- <p style="position:relative; margin-bottom:5px;"><img src="http://image.juxiangyou.com/task/1.jpg" /></p> -->
			{php $userinfo = is_login();}
			<ul class="Newcomers_list">
				<span class="sarrow1"><img src="{THEME_STYLE_PATH}style/images/newcomers/arrow1.png" /></span>
				<span class="sarrow2"><img src="{THEME_STYLE_PATH}style/images/newcomers/arrow1.png" /></span>
				<span class="sarrow3"><img src="{THEME_STYLE_PATH}style/images/newcomers/arrow1.png" /></span>
				{loop $document $task}
				<li class="Nbox">
					<p class="title">{$task[title]}</p>
					<p class="tips">{cutstr($task[description], 24)}</p>
					<p class="qtimg"><a href="{$task[url]}" target="_blank"><img src="{$task[thumb]}" width="178" height="97" /></a></p>					
					{if $task[is_finish] === TRUE}
					<p><a href="javascript:void(0);" class="nboxbtn_un" target="_blank">已完成</a></p>
					{else}
					<p><a {if !$userinfo}href="javascript:void(0);" onclick="noLogin()"{else}href="{$task[url]}"{/if} class="nboxbtn" target="_blank">立即体验</a></p>
					{/if}
				</li>
				{/loop}
				<li class="Nbtn">
				{loop $task_list $list}
					{if $list[id] == $info[id]}
					<p><a href="javascript:void(0);" onclick="awardTask({$list[id]})" class="ewljbtn">点我领取奖励<br><span style="color:#ffeea1; font-size:12px;">({exchange_money($info[do_coin])}RMB)</span></a></p>
					<p></p>
					{else}
					<p><a href="{U('Document/Newtask/index', array('id' => $list['id']))}" class="otherqt">{$list[title]}</a><br></p>
					<p></p>
					{/if}
				{/loop}
				</li>
			</ul>
		</div>
		<p style="margin-top:25px;"><img src="{THEME_STYLE_PATH}style/images/newcomers/newcomers_10.jpg" /></p>
		<div class="New_wlc_info" id="info">
			<ul>
				<li><a href="/games/" class="yxswbtn jxy_method" target="_blank"></a><div class="nwi_tips" style="display:none;"><p class="a1">玩试玩，达到相应等级<br />即可获得<span class="ofe">{type_change()}币奖励</span>。</p><p>平均每日可获得<span class="ofe">10元</span>奖励</p></div></li>
				<li><a href="/captcha/" class="dmzqbtn jxy_method" target="_blank"></a><div class="nwi_tips" style="display:none;"><p class="a1">下载打码软件进行打码<br />即可获得<span class="ofe">{type_change()}币奖励</span>。</p><p>平均每日可获得<span class="ofe">15元</span>奖励</p></div></li>
				<li><a href="/adverts/" class="ggtybtn jxy_method" target="_blank"></a><div class="nwi_tips" style="display:none;"><p class="a1">按照广告要求进行广告体验<br />即可获得<span class="ofe">{type_change()}币奖励</span>。</p><p>平均每日可获得<span class="ofe">5元</span>奖励</p></div></li>
				<li><a href="/recommend/" class="tjhybtn jxy_method" target="_blank"></a><div class="nwi_tips" style="display:none;"><p class="a1">邀请好友,来玩及时赚<br />好友赚取{type_change()}币，你将从中<span class="ofe">获得提成</span></p><p>好友越多，{type_change()}币<span class="ofe">奖励越多</span></div></li>
				<div class="clear"></div>
			</ul>
		</div>
		<div class="howtx">
			<p><img src="{THEME_STYLE_PATH}style/images/newcomers/newcomers_12.jpg" /></p>
			<ul>
			{if $userinfo}
				<input type="hidden" id="userinfo" value="{$userinfo['userid']}">
			{/if}
				<span class="barrow1"><img src="{THEME_STYLE_PATH}style/images/newcomers/arrow2.png" /></span>
				<span class="barrow2"><img src="{THEME_STYLE_PATH}style/images/newcomers/arrow2.png" /></span>
				<span class="barrow3"><img src="{THEME_STYLE_PATH}style/images/newcomers/arrow2.png" /></span>
				<li><a href="javascript:void(0);" onclick="noLogin()" class="txstep1" target="_blank"></a></li>
				<li><a href="javascript:void(0);" onclick="taskByAddFav()" class="txstep2" target="_blank"></a></li>
				<li><a href="javascript:void(0);" onclick="awardTaska()" class="txstep3" target="_blank"></a></li>
				<li class="last"><a href="javascript:void(0);" onclick="awardTaskb()" class="txstep4" target="_blank"></a></li>
			</ul>
		</div>		
		<p><img src="{THEME_STYLE_PATH}style/images/newcomers/newcomers_14.jpg" /></p>
		<ul class="qtkf">
			<li>客服咨询：&nbsp;<img  style="CURSOR: pointer" onclick="javascript:window.open('http://b.qq.com/webc.htm?new=0&sid=239301396&o=及时赚&q=7', '_blank', 'height=502, width=644,toolbar=no,scrollbars=no,menubar=no,status=no');"  border="0" SRC=http://wpa.qq.com/pa?p=1:239301396:10 alt="点击这里给我发消息"></li>
			<li>提现咨询：&nbsp;<img  style="CURSOR: pointer" onclick="javascript:window.open('http://b.qq.com/webc.htm?new=0&sid=239301394&o=及时赚&q=7', '_blank', 'height=502, width=644,toolbar=no,scrollbars=no,menubar=no,status=no');"  border="0" SRC=http://wpa.qq.com/pa?p=1:239301394:10 alt="点击这里给我发消息"></li>
			<li>官方Q群： &nbsp;<a target="_blank" href="http://shang.qq.com/wpa/qunwpa?idkey=bb4a16b6b3a59fe1f429fd0a1471dd22296f9014a51454ec29e213b6a7cd6c95"><img border="0" src="http://pub.idqqimg.com/wpa/images/group.png" alt="及时赚" title="及时赚"></a>
		</ul>
		<p><img src="{THEME_STYLE_PATH}style/images/newcomers/newcomers_10.jpg" /></p>
	</div>
	<!--主体-->
	<!--尾部-->
	{include template('footer','common')}
	<!--尾部-->
</body>
</html>
<script type="text/javascript">
$(document).ready(function(){
	$('.jxy_method').mouseover(function(){
		$(this).next().fadeIn(200);
	});
	$('.jxy_method').mouseout(function(){
		$(this).next().fadeOut(200);
	});

	$('.subcz').click(function(){
		juxiangyou.core.func.addFavorite(juxiangyou.lib.constant.__SITE_URL,document.title);
	});
});

function taskByAddFav() {
		var userid = $('#userinfo').val();
		if(userid){
			window.location.href = "{U('Member/Account/cash')}";
		}else{
			popup._href = "{U('Member/Account/cash')}";
			popup.prompt("未登录或登录状态超时，请重新登录！");
			return;
		}
}
function noLogin() {
	var userid = $('#userinfo').val();
	if(userid){
		window.location.href = "{U('Member/Profile/index')}";
	}else{
		popup._href = "{U('Member/Profile/index')}";
		popup.prompt("未登录或登录状态超时，请重新登录！");
	}
}
function awardTask() {
	popup.prompt("未登录或登录状态超时，请重新登录！");
}
function awardTasks() {
	popup._href = "{U('Member/Profile/index')}";
	popup.prompt("未登录或登录状态超时，请重新登录！");
}
function awardTaska(){
	popup.prompt("这一步嘛，稍等片刻就好啦！");
	return;
}
function awardTaskb(){
	popup.prompt("提现成功哦，快去看一下喽！");
	return;
}
</script>